package com.wxy.test1.problem4;

public class Snacks extends SetUpShop{
    Operation shopApproveProcess = new ShopApproveProcess();
    Decorator decorator = new Decorator(shopApproveProcess);

    @Override
    public void getShopName() {
        System.out.println("[小吃店]");
        RegisterOfTheName name = new RegisterOfTheName(decorator);
        name.step1();
    }

    @Override
    public void getPolLicense() {
        PolltionChargeingLicense license = new PolltionChargeingLicense(decorator);
        license.step2();
    }

    @Override
    public void getHyLicense() {
        Hygieniclicense license = new Hygieniclicense(decorator);
        license.step3();
    }

    @Override
    public void getBusinessLicense() {
        BussinessLicense license = new BussinessLicense(decorator);
        license.step4();
    }

    @Override
    public void getFireApproval() {
        FireApproval approval = new FireApproval(decorator);
        approval.step5();
    }

    @Override
    public void getLandtax() {
        Landtax landtax = new Landtax(decorator);
        landtax.step6();
    }

    @Override
    public void getTradingLicense() {
        TradingLicense license = new TradingLicense(decorator);
        license.step7();
    }

    @Override
    public void getAdditionalOperation() {
        AdditonalOperation operation = new AdditonalOperation(decorator);
        operation.step8();
    }
}